<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\SStuTaskInfo as StuTaskModel;

class StuTaskController extends Controller
{

    //获取用户任务
    public function getMyTask()
    {
    	$status  = request('status', -1);
    	$start   = request('start', 0);
        $user_id = auth()->user()->id;

		$list = StuTaskModel::getStuTaskList($user_id, $status, $start, 5);

    	if($list->isEmpty()) {
    		return $this->outPutErr("没有更多了！");
    	} 

    	return $this->outPutSucc($list);
    }
}
